<?php if (! defined ( 'BASEPATH' )) exit ( 'No direct script access allowed' );

	class Test extends CI_Controller{
		public $url='http://zc.qq.com/cgi-bin/chs/numreg/get_acc?r=0.28596677478722876';
		
		public function __construct() {
			parent::__construct();
			//$this->load->model('peccancy_model');
		}
		
		public function index(){
			$curl = curl_init ();
			$curlopt = array (
					CURLOPT_URL => $this->url
					);
			curl_setopt_array ( $curl, $curlopt );
			$checkrs = curl_exec ( $curl );
			if(!$checkrs){
				$info = curl_getinfo($curl);
					
				print_r($info);
				echo curl_error($curl);
				exit();
			}
			curl_close ( $curl );
			print_r($checkrs);
			
		}
		
		
	}
